import React, {Component} from 'react'

export default class Header extends Component {
    constructor(props) {
        super(props)
        this.state = {
            value: ''
        }
    }
    render() {
        return (
            <div className='footer'>
                <i className='iconfont icon-huabankaobei-'></i>
                <div className='search' onKeyDown={this.searchMusic}>
                    <i className='iconfont icon-sousuo3'></i>
                    <input type='text' value={this.state.value} placeholder='搜索音乐、歌词、电台' autoFocus onChange={this.getWord}></input>
                </div>
                <i className='iconfont icon-liebiao'></i>
            </div>
        )
    }
}